<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
	<div id="add_category_wrap" >
		<form action="<%=basePath%>category/addCategory.action" method="post"
			enctype="multipart/form-data">
			<div>
				<label for="icon-file">
					图标
				</label>
				<input id="icon-file" type="file" name="upload" />
			</div>
			<div >
				<label for="category-name">
					名称
				</label>
				<input id="category-name" type="text" value=""
					name="newCategoryName">
				<s:fielderror><s:param>newCategoryName</s:param></s:fielderror>
			</div>
			<div>这将是它在站点上显示的名字。</div>
			<div >
				<label for="category-description">
					描述
				</label>
				<textarea id="category-description" cols="40" rows="5"
					name="newCategoryDescription"></textarea>
			</div>
			<div>“描述”不一定会被显示，但有的主题会显示它。</div>
			<div >
				<input type="submit" value="提交" /><input type="submit" value="关闭" />
			</div>
		</form>
	</div>

